<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Canvas.AnimatedCanvas Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_canvas_1_1_animated_canvas.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Canvas.AnimatedCanvas Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>An Avalonia.Controls.Canvas containing an animation.   
 <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for VectSharp.Canvas.AnimatedCanvas:</div>
<div class="dyncontent">
<div class="center"><img src="class_vect_sharp_1_1_canvas_1_1_animated_canvas__inherit__graph.png" border="0" usemap="#a_vect_sharp_8_canvas_8_animated_canvas_inherit__map" alt="Inheritance graph"/></div>
<map name="a_vect_sharp_8_canvas_8_animated_canvas_inherit__map" id="a_vect_sharp_8_canvas_8_animated_canvas_inherit__map">
<area shape="rect" title="An Avalonia.Controls.Canvas containing an animation." alt="" coords="5,93,193,133"/>
<area shape="rect" title=" " alt="" coords="36,5,163,45"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa27d7d5c0a5b45f87dcea5f353e56334"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#aa27d7d5c0a5b45f87dcea5f353e56334">Render</a> (DrawingContext context)</td></tr>
<tr class="separator:aa27d7d5c0a5b45f87dcea5f353e56334"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ae0fa13adb662cd2c06e17d739d3394b0"><td class="memItemLeft" align="right" valign="top">static readonly StyledProperty&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae0fa13adb662cd2c06e17d739d3394b0">CurrentFrameProperty</a></td></tr>
<tr class="memdesc:ae0fa13adb662cd2c06e17d739d3394b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a21d718889107c17caa09b958a324191a" title="The current frame in the animation.">CurrentFrame</a> property.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae0fa13adb662cd2c06e17d739d3394b0">More...</a><br /></td></tr>
<tr class="separator:ae0fa13adb662cd2c06e17d739d3394b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a814d8119f27dac2ef8ba61dbfeab8372"><td class="memItemLeft" align="right" valign="top">static readonly DirectProperty&lt; <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a814d8119f27dac2ef8ba61dbfeab8372">FrameCountProperty</a> = AvaloniaProperty.RegisterDirect&lt;<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, int&gt;(nameof(<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a3c216cfb0376d68376608019ed6be25b">FrameCount</a>), o =&gt; o.maxFrameIndex)</td></tr>
<tr class="memdesc:a814d8119f27dac2ef8ba61dbfeab8372"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a3c216cfb0376d68376608019ed6be25b" title="The number of frames in the animation.">FrameCount</a> property.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a814d8119f27dac2ef8ba61dbfeab8372">More...</a><br /></td></tr>
<tr class="separator:a814d8119f27dac2ef8ba61dbfeab8372"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a306f153be92aaa60e859003c46fde965"><td class="memItemLeft" align="right" valign="top">static readonly DirectProperty&lt; <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a306f153be92aaa60e859003c46fde965">FrameRateProperty</a> = AvaloniaProperty.RegisterDirect&lt;<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, double&gt;(nameof(<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae725bde12b7d32f824c854b938cf0e0a">FrameRate</a>), o =&gt; o.FrameRate)</td></tr>
<tr class="memdesc:a306f153be92aaa60e859003c46fde965"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae725bde12b7d32f824c854b938cf0e0a" title="The target frame rate of the animation.">FrameRate</a> property.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a306f153be92aaa60e859003c46fde965">More...</a><br /></td></tr>
<tr class="separator:a306f153be92aaa60e859003c46fde965"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a191ed4831104f6a5c9f4c6edf9c97b3b"><td class="memItemLeft" align="right" valign="top">static readonly StyledProperty&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a191ed4831104f6a5c9f4c6edf9c97b3b">IsPlayingProperty</a></td></tr>
<tr class="memdesc:a191ed4831104f6a5c9f4c6edf9c97b3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ace236a4cefd0bf0dcaf98c69031225c6" title="The current frame in the animation.">IsPlaying</a> property.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a191ed4831104f6a5c9f4c6edf9c97b3b">More...</a><br /></td></tr>
<tr class="separator:a191ed4831104f6a5c9f4c6edf9c97b3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a21d718889107c17caa09b958a324191a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a21d718889107c17caa09b958a324191a">CurrentFrame</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a21d718889107c17caa09b958a324191a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The current frame in the animation.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a21d718889107c17caa09b958a324191a">More...</a><br /></td></tr>
<tr class="separator:a21d718889107c17caa09b958a324191a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c216cfb0376d68376608019ed6be25b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a3c216cfb0376d68376608019ed6be25b">FrameCount</a><code> [get]</code></td></tr>
<tr class="memdesc:a3c216cfb0376d68376608019ed6be25b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of frames in the animation.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a3c216cfb0376d68376608019ed6be25b">More...</a><br /></td></tr>
<tr class="separator:a3c216cfb0376d68376608019ed6be25b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae725bde12b7d32f824c854b938cf0e0a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae725bde12b7d32f824c854b938cf0e0a">FrameRate</a><code> [get]</code></td></tr>
<tr class="memdesc:ae725bde12b7d32f824c854b938cf0e0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The target frame rate of the animation.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae725bde12b7d32f824c854b938cf0e0a">More...</a><br /></td></tr>
<tr class="separator:ae725bde12b7d32f824c854b938cf0e0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace236a4cefd0bf0dcaf98c69031225c6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ace236a4cefd0bf0dcaf98c69031225c6">IsPlaying</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ace236a4cefd0bf0dcaf98c69031225c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">The current frame in the animation.   <a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ace236a4cefd0bf0dcaf98c69031225c6">More...</a><br /></td></tr>
<tr class="separator:ace236a4cefd0bf0dcaf98c69031225c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >An Avalonia.Controls.Canvas containing an animation.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00028">28</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa27d7d5c0a5b45f87dcea5f353e56334" name="aa27d7d5c0a5b45f87dcea5f353e56334"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa27d7d5c0a5b45f87dcea5f353e56334">&#9670;&#160;</a></span>Render()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override void VectSharp.Canvas.AnimatedCanvas.Render </td>
          <td>(</td>
          <td class="paramtype">DrawingContext&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00203">203</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ae0fa13adb662cd2c06e17d739d3394b0" name="ae0fa13adb662cd2c06e17d739d3394b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0fa13adb662cd2c06e17d739d3394b0">&#9670;&#160;</a></span>CurrentFrameProperty</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly StyledProperty&lt;int&gt; VectSharp.Canvas.AnimatedCanvas.CurrentFrameProperty</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= AvaloniaProperty.Register&lt;AnimatedCanvas, <span class="keywordtype">int</span>&gt;(nameof(<a class="code hl_property" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a21d718889107c17caa09b958a324191a">CurrentFrame</a>), coerce: (ownerObject, val) =&gt;</div>
<div class="line">        {</div>
<div class="line">            AnimatedCanvas owner = (AnimatedCanvas)ownerObject;</div>
<div class="line"> </div>
<div class="line">            <span class="keywordflow">if</span> (owner.maxFrameIndex &gt; 0)</div>
<div class="line">            {</div>
<div class="line">                <span class="keywordflow">if</span> (val &lt; owner.maxFrameIndex)</div>
<div class="line">                {</div>
<div class="line">                    <span class="keywordflow">return</span> val;</div>
<div class="line">                }</div>
<div class="line">                <span class="keywordflow">else</span></div>
<div class="line">                {</div>
<div class="line">                    owner.IsPlaying = <span class="keyword">false</span>;</div>
<div class="line">                    <span class="keywordflow">return</span> owner.maxFrameIndex - 1;</div>
<div class="line">                }</div>
<div class="line">            }</div>
<div class="line">            <span class="keywordflow">else</span></div>
<div class="line">            {</div>
<div class="line">                <span class="keywordflow">return</span> val % owner.RenderActions.Length;</div>
<div class="line">            }</div>
<div class="line">        })</div>
<div class="ttc" id="aclass_vect_sharp_1_1_canvas_1_1_animated_canvas_html_a21d718889107c17caa09b958a324191a"><div class="ttname"><a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a21d718889107c17caa09b958a324191a">VectSharp.Canvas.AnimatedCanvas.CurrentFrame</a></div><div class="ttdeci">int CurrentFrame</div><div class="ttdoc">The current frame in the animation.</div><div class="ttdef"><b>Definition:</b> <a href="_animated_canvas_8cs_source.html#l00058">AnimatedCanvas.cs:59</a></div></div>
</div><!-- fragment -->
<p>Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a21d718889107c17caa09b958a324191a" title="The current frame in the animation.">CurrentFrame</a> property.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00033">33</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<a id="a814d8119f27dac2ef8ba61dbfeab8372" name="a814d8119f27dac2ef8ba61dbfeab8372"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a814d8119f27dac2ef8ba61dbfeab8372">&#9670;&#160;</a></span>FrameCountProperty</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly DirectProperty&lt;<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, int&gt; VectSharp.Canvas.AnimatedCanvas.FrameCountProperty = AvaloniaProperty.RegisterDirect&lt;<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, int&gt;(nameof(<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a3c216cfb0376d68376608019ed6be25b">FrameCount</a>), o =&gt; o.maxFrameIndex)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#a3c216cfb0376d68376608019ed6be25b" title="The number of frames in the animation.">FrameCount</a> property.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00067">67</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<a id="a306f153be92aaa60e859003c46fde965" name="a306f153be92aaa60e859003c46fde965"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a306f153be92aaa60e859003c46fde965">&#9670;&#160;</a></span>FrameRateProperty</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly DirectProperty&lt;<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, double&gt; VectSharp.Canvas.AnimatedCanvas.FrameRateProperty = AvaloniaProperty.RegisterDirect&lt;<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>, double&gt;(nameof(<a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae725bde12b7d32f824c854b938cf0e0a">FrameRate</a>), o =&gt; o.FrameRate)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ae725bde12b7d32f824c854b938cf0e0a" title="The target frame rate of the animation.">FrameRate</a> property.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00091">91</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<a id="a191ed4831104f6a5c9f4c6edf9c97b3b" name="a191ed4831104f6a5c9f4c6edf9c97b3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a191ed4831104f6a5c9f4c6edf9c97b3b">&#9670;&#160;</a></span>IsPlayingProperty</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly StyledProperty&lt;bool&gt; VectSharp.Canvas.AnimatedCanvas.IsPlayingProperty</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= AvaloniaProperty.Register&lt;AnimatedCanvas, <span class="keywordtype">bool</span>&gt;(nameof(<a class="code hl_property" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ace236a4cefd0bf0dcaf98c69031225c6">IsPlaying</a>), <span class="keyword">false</span>, coerce: (ownerObject, val) =&gt;</div>
<div class="line">        {</div>
<div class="line">            AnimatedCanvas owner = (AnimatedCanvas)ownerObject;</div>
<div class="line"> </div>
<div class="line">            <span class="keywordflow">if</span> (owner.IsPlaying &amp;&amp; !val)</div>
<div class="line">            {</div>
<div class="line">                owner.RefreshTimer.Dispose();</div>
<div class="line">            }</div>
<div class="line">            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!owner.IsPlaying &amp;&amp; val)</div>
<div class="line">            {</div>
<div class="line">                owner.RefreshTimer = <span class="keyword">new</span> System.Threading.Timer(_ =&gt;</div>
<div class="line">                {</div>
<div class="line">                    _ = Avalonia.Threading.Dispatcher.UIThread.InvokeAsync(() =&gt;</div>
<div class="line">                    {</div>
<div class="line">                        owner.CurrentFrame++;</div>
<div class="line">                    });</div>
<div class="line">                }, <span class="keyword">null</span>, 0, (long)(1000.0 / owner.FrameRate));</div>
<div class="line">            }</div>
<div class="line"> </div>
<div class="line">            <span class="keywordflow">return</span> val;</div>
<div class="line">        })</div>
<div class="ttc" id="aclass_vect_sharp_1_1_canvas_1_1_animated_canvas_html_ace236a4cefd0bf0dcaf98c69031225c6"><div class="ttname"><a href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ace236a4cefd0bf0dcaf98c69031225c6">VectSharp.Canvas.AnimatedCanvas.IsPlaying</a></div><div class="ttdeci">bool IsPlaying</div><div class="ttdoc">The current frame in the animation.</div><div class="ttdef"><b>Definition:</b> <a href="_animated_canvas_8cs_source.html#l00140">AnimatedCanvas.cs:141</a></div></div>
</div><!-- fragment -->
<p>Defines the <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html#ace236a4cefd0bf0dcaf98c69031225c6" title="The current frame in the animation.">IsPlaying</a> property.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00115">115</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a21d718889107c17caa09b958a324191a" name="a21d718889107c17caa09b958a324191a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21d718889107c17caa09b958a324191a">&#9670;&#160;</a></span>CurrentFrame</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int VectSharp.Canvas.AnimatedCanvas.CurrentFrame</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The current frame in the animation.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00058">58</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<a id="a3c216cfb0376d68376608019ed6be25b" name="a3c216cfb0376d68376608019ed6be25b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c216cfb0376d68376608019ed6be25b">&#9670;&#160;</a></span>FrameCount</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int VectSharp.Canvas.AnimatedCanvas.FrameCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The number of frames in the animation.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00074">74</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<a id="ae725bde12b7d32f824c854b938cf0e0a" name="ae725bde12b7d32f824c854b938cf0e0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae725bde12b7d32f824c854b938cf0e0a">&#9670;&#160;</a></span>FrameRate</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Canvas.AnimatedCanvas.FrameRate</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The target frame rate of the animation.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00098">98</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<a id="ace236a4cefd0bf0dcaf98c69031225c6" name="ace236a4cefd0bf0dcaf98c69031225c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace236a4cefd0bf0dcaf98c69031225c6">&#9670;&#160;</a></span>IsPlaying</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool VectSharp.Canvas.AnimatedCanvas.IsPlaying</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The current frame in the animation.  </p>

<p class="definition">Definition at line <a class="el" href="_animated_canvas_8cs_source.html#l00140">140</a> of file <a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp.Canvas/<a class="el" href="_animated_canvas_8cs_source.html">AnimatedCanvas.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="namespace_vect_sharp_1_1_canvas.html">Canvas</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
